MongoDB
MongoDB is an open-source NoSQL database known for its flexibility, scalability, and JSON-like document storage. It's ideal for modern applications, offering horizontal scaling, robust querying, and high availability through replica sets.
In Smartsign, MongoDB is used for various internal messing, caches and queues.
Version support
| Smartsign Server | MongoDB |
|---|---|
| 10.25 - | 8.x |
| 10.23 - 10.25 | 7.x |
From version 11.26.9, the Server Installer checks that MongoDB 8.x is installed, running as a Windows service and set to start automatically.
MongoDB must be upgraded one major version at a time, for example 6.0, then 7.0, then 8.0. See the MongoDB upgrade instructions.
Installation
To install MongoDB, follow these steps:
-
Download MongoDB:
- Visit the MongoDB website (https://www.mongodb.com/try/download/community) and download MongoDB Community Server 8.x for Windows x64 (msi).
-
Run the Installer:
- Locate the downloaded installer (usually a .msi file) and double-click it to run the installer.
-
Choose Setup Type:
- Select "Complete" for a full installation with all components.
-
Install MongoDB as a Service:
- Select "Install MongoD as a Service" and the "Run service as Network Service user" option to install MongoDB as a Windows service.
-
Specify Data Directory:
- Choose a location for your MongoDB data directory. The default location is usually fine, but you can change it if needed.
-
Configure MongoDB Compass (Optional):
- You can choose to install MongoDB Compass, a graphical user interface for MongoDB, during the installation process if you wish.
-
Install MongoDB:
- Click the "Install" button to begin the installation process. It may take a few minutes to complete.
-
Completing the Installation:
- Once the installation is finished, click the "Finish" button.
-
Verify the service is running
- Check that the service "MongoDB Server (MongoDB)" is up and running, and that its startup type is set to Automatic